<template>
    <div class="goodsdesc-container">
        <h3>{{info.title}}</h3>
        <hr>
        <div v-html="info.content"></div>
    </div>
</template>

<script>
export default {
    data(){
        return{
            info:{}
        }
    },
    created(){
        this.getDesc()
    },
    methods:{
        async getDesc(){
            const {data} = await this.$http.get('api/goods/getdesc/'+this.$route.params.id)
            if(data.status === 0){
                this.info = data.message[0]
            }
        }
    }
}
</script>

<style lang="scss">
.goodsdesc-container{
    h3{
        font-size:14px;
        text-align: center;
        margin: 15px 0;
        color: #226aff;
    }
    img{
        width: 100%;
    }
   
}
</style>
